Skip to content

updates for windows 11#30

Closed
camhart wants to merge 2 commits into
simonepri:mainfrom
camhart:main
Closed

updates for windows 11#30
camhart wants to merge 2 commits into
simonepri:mainfrom
camhart:main

Conversation

@camhart

@camhart camhart commented Apr 17, 2025

Copy link
Copy Markdown

removed wmic, replaced with powershell calls.

camhart added 2 commits April 17, 2025 18:28
removed wmic, replaced with powershell calls.
bumping version number
@huan huan requested a review from Copilot April 18, 2025 08:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates Windows support by removing the legacy WMIC-based process fetching and replacing it with PowerShell calls. Key changes include:

  • Removal of WMIC-related tests and code.
  • Addition of tests and implementation for fetching processes using PowerShell.
  • Update of the platform mapping in lib/get.js to use the new PowerShell approach.

Reviewed Changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
test/wmic.js Removed tests for WMIC in favor of PowerShell implementation.
test/powershell.js Added new tests to validate PowerShell output and error handling.
lib/wmic.js Removed WMIC module as it is no longer used.
lib/powershell.js Introduced new module for process fetching using PowerShell.
lib/get.js Updated platform mapping to use PowerShell instead of WMIC for win.
Files not reviewed (1)
  • package.json: Language not supported

@BotellaA

Copy link
Copy Markdown

@simonepri what do you think abot this? Have this project worked without wmic would be great

@simonepri

Copy link
Copy Markdown
Owner

Hey there, taking a look at all of the issues/prs shortly and giving the project an overdue face lift after so many years of inactivity!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants